package com.x.epspace.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;


public class BaseAjaxController extends BaseActionController {
	
	protected void outJsonString(HttpServletResponse response,String json) {  
        response.setContentType("application/json;charset=utf-8");
        response.setHeader("Cache-Control","no-store, max-age=0, no-cache, must-revalidate");    
        response.addHeader("Cache-Control", "post-check=0, pre-check=0");
        response.setHeader("Pragma", "no-cache"); 
        try {  
            PrintWriter out = response.getWriter();  
            out.write(json);  
            out.close();
        } catch (IOException e) {  
            e.printStackTrace();  
        }    
    }    
	
}
